import kiRequest from "..";

export function login(data:any) {
  return kiRequest.post({
    url: "/login",
    data
  })
}

export function getUserInfo(id:number) {
  return kiRequest.get({
    url:`/users/${id}`
  })
}

export function getUserRights(id:number) {
  return kiRequest.get({
    url:`/rights/${id}`
  })
}

export function getAthleteIdByUserId(id: number) {
  return kiRequest.get({
    url:`/athletes/${id}`
  })
}